package com.lagou.filter;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @ClassName Test
 * @Description TODO
 * @Auth ying.xiao
 * @Date 2021/4/13
 * @Version 1.0.0
 */
public class Test {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add("5");
        strings.add("2");
        strings.add("4");
        strings.add("7");
        strings.add("0");
        Object[] objects = strings.toArray();
        Arrays.sort(objects);
        for (Object object : objects) {
            System.out.println(object);
        }
    }
}
